import Vue from 'vue'
import Router from 'vue-router'
import login from '@/components/login'
import about from '@/components/about'
import home from '@/components/home'
import user from '@/components/user'
Vue.use(Router)

export default new Router({ 
  routes: [
    {
      path: '/',
      name: 'login',
      component: login
    },
    {
      path: '/about',
      name: 'about',
      component: about
    },
    {
      path: '/home',
      name: 'home',
      component: home
    },
    {
      path: '/user',
      name: 'user',
      component: user
    }
  ]
})
